﻿using HtmlAgilityPack;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Mvc;

namespace XBJCYGC.Controllers
{
    public class HomeController : Controller
    {

        public ActionResult Index()
        {
            return View();
        }
        public ActionResult Commonpage()
        {

            WebClient MyWebClient = new WebClient();
            Byte[] pyData = MyWebClient.DownloadData("http://flash.weather.com.cn/sk2/101181301.xml");
            ViewBag.py = Encoding.UTF8.GetString(pyData).Replace('\n',' ');
            Byte[] pgData = MyWebClient.DownloadData("http://flash.weather.com.cn/sk2/101270601.xml");
            ViewBag.pg = Encoding.UTF8.GetString(pyData).Replace('\n', ' ');
            Byte[] nmData = MyWebClient.DownloadData("http://flash.weather.com.cn/sk2/101080903.xml");
            ViewBag.nm = Encoding.UTF8.GetString(pyData).Replace('\n', ' ');
            return View();
        }
        public ActionResult SHBB()
        {
            return View();
        }
        public ActionResult ZLSC()
        {
            return View();
        }
        public ActionResult ZLGL()
        {
            return View();
        }
        public ActionResult ZLCX()
        {
            return View();
        }
        public ActionResult CourseList()
        {
            return View();
        }
        public ActionResult CourseAdd()
        {
            return View();
        }
    }
}